package com.foreveross.crawl.common.em;

public enum TaskState {

	FINISHED("FINISHED", "完成"), 
	DOING("DOING", "执行中"), 
	NORUN("NORUN", "未执行"), 
	EXCEPTION("EXCEPTION", "异常"),
//	PARSE_FAIL("PARSE_FAIL","解析失败"),
//	FETCH_FAIL("FETCH_FAIL","抓取失败"),
	PAUSE("PAUSE", "暂停"), 
	CANCEL("CANCEL", "取消"),
	BUSSNESS("BUSSNESS", "业务正常");
	
	private String type;
	private String desc;
	private TaskState(String type, String desc){
		this.type = type;
		this.desc = desc;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
}
